package com.bdweb.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("bd_medias")
public class WEAK {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String mediaName;
    private String ip;
    private String port;
    private boolean isopen;
    private  String title;
    private String opencode;
    private String closecode;

    public WEAK() {
    }

    public WEAK(Integer id, String mediaName, String ip, String port, boolean isopen, String title, String opencode, String closecode) {
        this.id = id;
        this.mediaName = mediaName;
        this.ip = ip;
        this.port = port;
        this.isopen = isopen;
        this.title = title;
        this.opencode = opencode;
        this.closecode = closecode;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return mediaName
     */
    public String getMediaName() {
        return mediaName;
    }

    /**
     * 设置
     * @param mediaName
     */
    public void setMediaName(String mediaName) {
        this.mediaName = mediaName;
    }

    /**
     * 获取
     * @return ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * 设置
     * @param ip
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * 获取
     * @return port
     */
    public String getPort() {
        return port;
    }

    /**
     * 设置
     * @param port
     */
    public void setPort(String port) {
        this.port = port;
    }

    /**
     * 获取
     * @return isopen
     */
    public boolean isIsopen() {
        return isopen;
    }

    /**
     * 设置
     * @param isopen
     */
    public void setIsopen(boolean isopen) {
        this.isopen = isopen;
    }

    /**
     * 获取
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     * @return opencode
     */
    public String getOpencode() {
        return opencode;
    }

    /**
     * 设置
     * @param opencode
     */
    public void setOpencode(String opencode) {
        this.opencode = opencode;
    }

    /**
     * 获取
     * @return closecode
     */
    public String getClosecode() {
        return closecode;
    }

    /**
     * 设置
     * @param closecode
     */
    public void setClosecode(String closecode) {
        this.closecode = closecode;
    }

    public String toString() {
        return "WEAK{id = " + id + ", mediaName = " + mediaName + ", ip = " + ip + ", port = " + port + ", isopen = " + isopen + ", title = " + title + ", opencode = " + opencode + ", closecode = " + closecode + "}";
    }
}
